/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.DesignPatterns.Creational.abstractFactory;

import za.ac.cput.DesignPatterns.structural.factorymethod.Animal;
import za.ac.cput.DesignPatterns.structural.factorymethod.Cat;
import za.ac.cput.DesignPatterns.structural.factorymethod.Dog;

/**
 *
 * @author Nashief
 */
public class MammalFactory extends SpeciesFactory {

    @Override
    public Animal getAnimal(String type) {
        if("dog".equals(type)){
        return new Dog();
        }else{
        return new Cat();
        }
    }
    
}
